package city.spring.modules.personnel.service;

import city.spring.modules.personnel.entity.EmployeeNoticeEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import lombok.NonNull;

import java.security.Principal;
import java.util.List;

/**
 * Service：通知公告
 *
 * @author Panxm
 * @date 2020-04-10 11:12:16
 */
public interface EmployeeNoticeService extends IService<EmployeeNoticeEntity> {
    String CACHE_NAME = "employee_notice";

    /**
     * 业务处理：保存一个 <strong>通知公告</strong>
     *
     * @param entity 通知公告
     */
    void saveEmployeeNotice(EmployeeNoticeEntity entity, @NonNull Principal user);
    //  void saveEmployeeNotice(EmployeeNoticeEntity entity);

    /**
     * 业务处理：修改一个 <strong>通知公告</strong>
     *
     * @param entity 通知公告
     */
    void updateEmployeeNotice(EmployeeNoticeEntity entity);

    /**
     * 业务处理：删除一个 <strong>通知公告</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteEmployeeNotice(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>通知公告</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteEmployeeNotice(List<String> primaryKeys);
}